import request from '../../utils/request'

// 获取叶子类目ID通过

export const queryMaterialDetail = (data) => {
  return request({
    url: `material/queryMaterialDetail`,
    method: "post",
    param: data
  })
}

// 搜索素材
export const searchMaterial = (data) => {
  return request({
    url: `material/searchMaterial`,
    method: "post",
    param: data
  })
}

// 获取容量
export const getCapInfo = (data) => {
  return request({
    url: `material/get_cap_info`,
    method: "post",
    param: data
  })
}

// 批量上传视频
export const batchUploadVideoAsync = (data) => {
  return request({
    url: `material/batchUploadVideoAsync`,
    method: "post",
    param: data
  })
}

// 获取视频详情
export const getVideoDetail = (data) => {
  return request({
    url: `material/mGetPlayInfo`,
    method: "post",
    param: data
  })
}

// 删除文件夹
export const deleteFolder = (data) => {
  return request({
    url: `material/deleteFolder`,
    method: "post",
    param: data
  })
}

// 获取文件夹详情
export const getFolderDetail = (data) => {
  return request({
    url: `material/getFolderInfo`,
    method: "post",
    param: data
  })
}

// 删除素材
export const deleteMaterial = (data) => {
  return request({
    url: `material/easyShuttle`,
    method: "post",
    param: data
  })
}